#ifndef __FLOWER_BLOCK_H__
#define __FLOWER_BLOCK_H__

#include "Block.hpp"
#include "Engine/Random.hpp"

using namespace PocketSurvival::Engine;

namespace PocketSurvival
{
    class FlowerBlock : public Block
    {
    public:
        FlowerBlock();
        virtual void getDropValues(int32_t oldValue, int32_t newValue, int32_t toolLevel, std::vector<BlockDropValue> &dropValues) override;

        static inline bool GetIsSmall(int32_t data);
        static inline int32_t SetIsSmall(int32_t data, bool isSmall);
    };

    inline bool FlowerBlock::GetIsSmall(int32_t data)
    {
        return (data & 1) != 0;
    }
    inline int32_t FlowerBlock::SetIsSmall(int32_t data, bool isSmall)
    {
        if(isSmall == false)
        {
            return data & -2;
        }
        return data | 1;
    }

} // namespace PocketSurvival

#endif